using UnityEngine;

public class SPR_Scrolling : MonoBehaviour
{
	[Header("-- Variables --")]
	[SerializeField]
	private Material TargetMaterial;

	[SerializeField]
	private Vector2 ScrollSpeed;

	private Vector2 scroll;

	private void Start()
	{
		TargetMaterial = ((Renderer)((Component)this).GetComponent<SpriteRenderer>()).material;
	}

	private void Update()
	{
		//IL_0002: Unknown result type (might be due to invalid IL or missing references)
		//IL_0008: Unknown result type (might be due to invalid IL or missing references)
		//IL_0012: Unknown result type (might be due to invalid IL or missing references)
		//IL_0017: Unknown result type (might be due to invalid IL or missing references)
		//IL_001c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0028: Unknown result type (might be due to invalid IL or missing references)
		scroll += ScrollSpeed * Time.deltaTime;
		TargetMaterial.mainTextureOffset = scroll;
	}
}
